package com.leyou.item.mapper;

import com.leyou.item.entity.Brand;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Controller;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

@Repository
public interface BrandMapper extends BaseMapper<Brand> {

    int insertCategoryBrand(@Param("bid") Long bid, @Param("cids") List<Long> cids);

    List<Brand> selectBrandByCategoryId(@Param("cid") Long cid);

    List<Long> selectBrandIdFromCategoryParam(@Param("cid") Long cid);
}
